def send_request(request_param, config, form=False):
    """
    请求
    :param request_param:
    :param config:
    :param form: 表单格式
    :return: 响应和请求参数
    """
    data = request_param.get('request_data')
    method = request_param.get('./request_type').lower()
    url = config.get('host') + 'equest_param.get('url')
    cookie = config.get('/header*').get('Cookie')
    if not cookie:
        raise Exception('没有登录')
    headers = {'Cookie': cookie, "x-g-automaticrequestflag": "RF|LCKJ|auto|regression"}
    requests.adapters.DEFAULT_RETRIES = 2  # 设置重连次数
    s = requests.session()
    s.keeplalive = False  # 设置连接活跃状态为False
    send = getattr(s, method)
    if method == 'get':
        res = send(url=url, params=data, headers=headers)
    else:
        if form:
            res = send(url=url, data=data, headers=headers)
        else:
            res = send(url=url, json=data, headers=headers)
    s.close()  # 关闭请求 释放内存
    if res.status_code == 200:
        res_data = parse_response(res)
        return res_data, data
    else:
        return res.status_code, data